package netty.dubbo.client.discovery;

import java.util.List;
import java.util.Random;

/**
 * @author: 程序员七哥
 * @date: 2021-12-19
 * @description: 随机负载均衡策略
 */
public class RandomLoadBalance implements LoadBalance{
    @Override
    public String load(List<String> serverList) {
        return serverList.get(new Random().nextInt(serverList.size()));
    }
}
